﻿package
{
	public class ConfigurationDS
	{
		public var awaymode: String;
		public var awaytime: String;
		public var soundset: Boolean;
		public var buddysort: String;
		public var historylength: int;
		
		/*Properties of visuals*/
		public var tabcolor: String;
		public var tabborder: String;
		public var windowcolor: String;
		public var windowborder: String;
		public var fontcolor: String;
	
		public function setAwayMode(mode:String):void
		{
			this.awaymode = mode;
		}
		
		public function getAwayMode():String
		{
			return this.awaymode;
		}
		
		public function setAwayTime(time:String):void
		{
			this.awaytime = time;
		}
		
		public function getAwayTime():String
		{
			return this.awaytime;
		}
		
		public function setSound(setting:Boolean):void
		{
			this.soundset = setting;
		}
		
		public function getSound():String
		{
			if(this.soundset)
				return "on";
			else
				return "off";
		}
		
		public function setSorting(sorting:String):void
		{
			this.buddysort = sorting;
		}
		
		public function getSorting():String
		{
			return this.buddysort;
		}
		
		public function setHistoryLength(length:int):void
		{
			this.historylength = length;
		}
		
		public function getHistoryLength():int
		{
			return this.historylength;
		}
		
		//Visuals
		public function setTabColor(color:String):void
		{
			this.tabcolor = color;
		}
		
		public function getTabColor():String
		{
			return this.tabcolor;
		}
		
		public function setTabBorder(color:String):void
		{
			this.tabborder = color;
		}
		
		public function getTabBorder():String
		{
			return this.tabborder;
		}
		
		public function setWindowColor(color:String):void
		{
			this.windowcolor = color;
		}
		
		public function getWindowColor():String
		{
			return this.windowcolor;
		}
		
		public function setWindowBorder(color:String):void
		{
			this.windowborder = color;
		}
		
		public function getWindowBorder():String
		{
			return this.windowborder;
		}
		
		public function setFontColor(color:String):void
		{
			this.fontcolor = color;
		}
		
		public function getFontColor():String
		{
			return this.fontcolor;
		}
	}
}